<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>SetMeshMaterial</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">SetMeshMaterial()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>SetMeshMaterial</b></font>(#Mesh, MaterialID [, SubMesh])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Set the mesh default material. 

 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Mesh</i></td>
<td width="90%"> 
 
The mesh to use. 

 

</td></tr>
<tr><td><i>MaterialID</i></td>
<td> 
 
The default material to use for the mesh. To get a valid 'MaterialID', use <a href="../material/materialid.html">MaterialID()</a>. 

 

</td></tr>
<tr><td><i>SubMesh (optional)</i></td>
<td> 
 
If specified, the material will be applied only to the submesh. The first submesh index is 0 (main mesh). 

 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

None.





</blockquote><p><b>See Also</b></p><blockquote>

<a href="createmesh.html">CreateMesh()</a>, <a href="loadmesh.html">LoadMesh()</a> 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=setmeshdata.html>SetMeshData()</a> - <a href=index.html>Mesh Index</a> - <a href=submeshcount.html>SubMeshCount()</a> -&gt;



</body></html>